 /***************************************************************************
 *   Copyright (C) 2010 by ZhangShine , All Rights Reserved                                  
 *   zhangshine0125@gmail.com                                              
 *                                                                         
 *   This program is free software; you can redistribute it and/or modify  
 *   it under the terms of the GNU General Public License as published by  
 *   the Free Software Foundation; either version 2 of the License, or     
 *   (at your option) any later version.                                   
 *                                                                         
 *   This program is distributed in the hope that it will be useful,       
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         
 *   GNU General Public License for more details.                          
 *                                                                         
 *   You should have received a copy of the GNU General Public License     
 *   along with this program; if not, write to the                         
 *   Free Software Foundation, Inc.,                                       
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             
 ***************************************************************************/

#ifndef STATUS_H
#define STATUS_H

#include <QDateTime>

/*! \class Status
 * \brief 微博结构
 *
 *
 */
class Status
{
public:
    Status();
    
    void setCreatedAt(QDateTime createdAt){ this->createdAt = createdAt ;}
    QDateTime getCreatedAt(){ return this->createdAt;}
    void setId(QString id){ this->id = id; }
    QString getId(){ return this->id;}
    void setText(QString text){this->text = text; }
    QString getText(){ return this->text; }
    void setFavourited(bool favourited){ this->favourited = favourited;}
    bool isFavourited(){ return this->favourited; }
    void setFollowing( bool following ) { this->following = following; }
    bool isFollowing(){ return this->following; }
    void setThumbnailPic(QString thumbnailPic){ this->thumbnailPic=thumbnailPic; }
    QString getThumbnailPic(){ return this->thumbnailPic; }
    void setBmiddlePic( QString bmiddlePic ){ this->bmiddlePic= bmiddlePic; }
    QString getBmiddlePic(){ return this->bmiddlePic; }
    void setOriginalPic( QString originalPic ){ this->originalPic = originalPic; }
    QString getOriginalPic(){ return this->originalPic; }
    void setUserId( QString userId){ this->userId = userId;}
    QString getUserId(){ return this->userId; }
    void setUserName( QString userName){ this->userName = userName; }
    QString getUserName(){ return this->userName; }
    void setUserProfileImageUrl(QString userProfileImageUrl){ this->userProfileImageUrl = userProfileImageUrl; }
    QString getUserProfileImageUrl(){ return this->userProfileImageUrl; }
    void setRetweetedId(QString retweetedId){ this->retweetedId = retweetedId; }
    QString getRetweetedId(){ return this->retweetedId; }

private:
    QDateTime createdAt;//微博创建时间
    QString id;//微博id
    QString text;//微博内容
    bool   favourited;//是否已收藏
    bool   following;//是否已关注
    QString thumbnailPic;//缩略图
    QString bmiddlePic;//中型图片
    QString originalPic;//原始图片
    QString userId;//微博作者id
    QString userName;//微博作者昵称
    QString userProfileImageUrl;//微博作者头像
    QString retweetedId;/*转发的微博id*/
};

#endif // STATUS_H
